package com.situ.springboot.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.situ.springboot.mapper.AdminMapper;
import com.situ.springboot.mapper.UserMapper;
import com.situ.springboot.pojo.Admin;
import com.situ.springboot.pojo.User;
import com.situ.springboot.pojo.query.AdminQuery;
import com.situ.springboot.service.IAdminService;
import com.situ.springboot.service.IUserService;
import com.situ.springboot.util.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

// Alt+Enter
@Service
public class UserServiceImpl implements IUserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(String name, String password) {
        return userMapper.login(name, password);
    }

}
